package net.javalib.gvmax.post.client;

import java.io.Serializable;

/**
 * Used to pass information to client of app start.
 * Mainly constains login info and if logged in the current postUrl for 
 * the logged in user.
 */
public class AppState implements Serializable {
	private static final long serialVersionUID = 1L;
	private boolean loggedIn = false;
	private String loginUrl;
	private String logoutUrl;
	private String emailAddress;
	private String nickname;
	private boolean isAdmin;
	private String postUrl;
	
	public boolean isLoggedIn() { return loggedIn; }
	public void setLoggedIn(boolean loggedIn) { this.loggedIn = loggedIn; }
	
	public String getLoginUrl() { return loginUrl; }
	public void setLoginUrl(String loginUrl) { this.loginUrl = loginUrl; }
	
	public String getLogoutUrl() { return logoutUrl; }
	public void setLogoutUrl(String logoutUrl) { this.logoutUrl = logoutUrl; }
	
	public String getEmailAddress() { return emailAddress; }
	public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; }
	
	public String getNickname() { return nickname; }
	public void setNickname(String nickname) { this.nickname = nickname; }
	
	public boolean isAdmin() { return isAdmin; }
	public void setIsAdmin(boolean isAdmin) { this.isAdmin = isAdmin; }
	
	public String getPostUrl() { return postUrl; }
	public void setPostUrl(String postUrl) { this.postUrl = postUrl; }
	
}
